.card-container {
  position: relative;
  width: 100%;
  height: 250px;
  .card-header {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 250px;
    height: 200px;
    z-index: 1;
    box-shadow: 0px 1px 1px #d3d3d3;
    .card-img {
      width: 100%;
      height: 200px;
      background: #e9e8e8;
      img {
        width: 100%;
        height: 140px;
      }
    }
    .card-info {
      height: 60px;
      background: #ffffff;
      text-align: center;
      line-height: 60px;
      font-size: 22px;
      font-weight: bold;
      color: #444444;
    }
    .card-tool {
      width: 400px;
      position: absolute;
      top: 10px;
      right: -420px;
      display: flex;
      justify-content: flex-start;
      flex-wrap: wrap;
      .tag {
        margin: 2px;
        float: left;
        opacity: 1;
        padding: 5px 10px;
        text-align: center;
        font-size: 14px;
        border-radius: 10px 0px;
        &:hover {
          opacity: 0.9;
        }
      }
    }
  }
  .card-content {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 160px;
    background: linear-gradient(#ffffff00 0%, #fafafa 100%);
    border-bottom: 2px solid #d3d3d3;
    border-radius: 10px 10px 0 0;
    > div {
      width: 60%;
      margin: 0 10px 5px 0;
      padding: 5px;
      float: right;
      height: 100%;
      overflow: hidden;
      p {
        font-size: 22px;
        font-weight: bold;
      }
      div {
        margin-top: 10px;
        width: 100%;
        height: 100%;
        font-size: 18px;
        line-height: 25px;
      }
    }
  }
  .card-footer{
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 200px;
    padding:5px;
    li{
      height: 28px;
      padding-left: 32px;
      float: left;
      margin: 0 10px;
      line-height: 28px;
      font-size: 16px;
      text-align: right;
      background: url(./img/comment.png) center left no-repeat;
      background-size: contain;
      &:first-child{
        background: url(./img/zan.png) center left no-repeat;
        background-size: contain;
      }
      &:first-child.active, &:first-child:hover{
        background: url(./img/zan-h.png) center left no-repeat;
        background-size: contain;
      }
    }
  }
}
.ellipsis {
  text-indent: 0em;//缩进
  overflow: hidden;
  white-space: initial;
  text-overflow: ellipsis;
  overflow-wrap: break-word;//换行
  display: -webkit-box;
  -webkit-line-clamp: 5;//最多4行
  -webkit-box-orient: vertical;
}
.default {
  background: #f1f1f1;
}
.black {
  background: #181818;
}
.red {
  background: #7c1919;
}